import React, { Component } from 'react'
import {router} from "umi"
import {inRoutes} from "../../../config/routers"

class Page extends Component {
  componentDidMount() {
    const oldPath=localStorage.getItem('pathname')
    let path =''
    if(!oldPath ||oldPath==='/'){
      path=inRoutes[0].path
    }else {
      path=oldPath
    }
    router.replace(path)
  }
  render() {
    return (
      <div/>
    )
  }
}

export default Page

